home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / bbs / rokv203a.zip / ROK.ZIP / RUNROK.BAT < prev    next >
DOS Batch File  |  1997-06-16  |  1KB  |  45 lines

  1. @ECHO OFF
  2. C:
  3.  
  4. REM CD\ROK
  5. REM ^ SET THIS TO THE ROK DIRECTORY! (and delete the REM)
  6.  
  7. REM ** To make ROK look for a DropFile in another Dir - Use this parameter : **
  8. REM
  9. REM ** RUNROK.BAT * /p<path>                                                 **
  10. REM
  11. REM ** Where "*" is your Node Number, and "/p<path>" is without the trailing **
  12. REM ** backslash "\" -- IE, /pc:\bbs will look for the dropfile in "c:\bbs". **
  13. REM
  14. REM ** We've included this information here because of the error in CONFIG's **
  15. REM ** [S]etup Nodes menu Option #5 (dropfile path).  We are trying to fix   **
  16. REM ** this error, but for now, this parameter will be a temporary fix.  If  **
  17. REM ** you have any troubles with ROK getting the parameter to work, by all  **
  18. REM ** means, contact us at anytime, and we'll help you out!                 **
  19.  
  20. IF "%1" == "" GOTO STOP
  21.  
  22. if exist EGO%1.BAT DEL EGO%1.BAT
  23. if exist ROKINFO.%1 DEL ROKINFO.%1
  24.  
  25. :BEGIN              
  26. ROK.EXE %1 %2
  27. IF ERRORLEVEL 255 GOTO DONE   
  28. IF ERRORLEVEL 254 GOTO EGO
  29. GOTO DONE
  30.  
  31. :EGO
  32. CALL EGO%1.BAT
  33. GOTO BEGIN
  34.  
  35. :STOP
  36. cls                                
  37. echo You MUST pass a node parameter! (ie RUNROK 1)
  38. GOTO REALDONE
  39.  
  40. :DONE
  41. if exist EGO%1.BAT DEL EGO%1.BAT
  42. if exist ROKINFO.%1 DEL ROKINFO.%1
  43.  
  44. :REALDONE
  45.